#ifndef __BSP_POWER__
#define __BSP_POWER__

#ifdef __cplusplus
extern "C" {
#endif

#include "bsp_config.h"

enum {
    RESET_BY_NONE,
    RESET_BY_HARDFAULT,
    RESET_BY_DOG,
    RESET_BY_HW,
    RESET_BY_MAX
};

void power_reason_update(void);
uint8_t get_reset_reason(void);

#ifdef __cplusplus
}
#endif

#endif
